tgo
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}https:
#include<stdio.h>
int main()
{
int n,a,i=1,sum=0;
printf("\nHow many number do you wanted add");
scanf("%d",&n);
while(i<=n){
printf("Enter any number:");
scanf("%d",&a);
sum+=a;
i+=1;
}
printf("\nSum=%d",sum);
}
|
run
| edit
| history
| help
|
0
|
|
|