write a program to compute the value of u for different values of x at distinct instances of time and plots the series of graphs on u vs plot.
#include <stdio.h>
int main()
{
int n;
int t=20;
for(int i=0;i<5;i++){
printf("Enter values of x: ");
scanf("%d",&n);
int sum=n*t;
printf("Value of u is:%d ",sum);
printf("\n");
}
}
Comments
Leave a comment