I just started learning C language at NIBM (Sri lanka). This is my programe. So please send me your comments about it.
here are the source codes
/* My first programme */
#include<stdio.h>
#include<conio.h>
main()
{
int a, b,tot,c;
clrscr();
printf(“\nThis software is developed by \n Ranuka Udayanga \n ranukau@gmail.com \n
www.handylanka.com\n “);
printf(“\n\n1st grade addition software\n”);
printf(“\n Enter First No\n”);
scanf(“%d”, &a);
printf(“\nEnter second no\n”);
scanf(“%d”,&b);
tot = a + b;
printf(“\nwhat is the answer\n”);
scanf(“%d”, &c);
if( c == tot)
printf(“\nYour are correct!!\n”);
else
printf(“\n you are incorrect \n\n Please go to grade 1 and learn
mathematics\n\n”);
printf(“Correct answer is %d”, tot);
getch();
return(0);
}
:









Hi, my name is Claire and I am studying programming too, at ANU in Australia. I compiled your program and it ran flawlessly. The only thing is there are a couple of typos in the text output, but i doubt you would lose marks for those
How are you liking C so far?
yes.. there are some doubts in this program. but that is my first one and i will come with my second program as soon as possible..
It’s really good. What will your next program do?
Hello webmaster
I would like to share with you a link to your site
write me here preonrelt@mail.ru